# 创建一个Person类, 属性有姓名, 年龄, 性别, 创建方法personinfo,打印这个人的信息
class Person():
    def __init__(self, name, age, sex):
        self.name = name
        self.age = age
        self.sex = sex

    def person_info(self):
        print(f'姓名:{self.name}\n年龄:{self.age}\n性别:{self.sex}')


class Student(Person):
    def __init__(self, name, age, sex, college):
        super().__init__(name, age, sex)
        self.college = college
        print(f'姓名:{self.name}\n年龄:{self.age}\n性别:{self.sex}\n学校{self.college}')

    def person_info(self, college=''):
        super().person_info()
        print(self.college)


use1 = Person('张三', 18, '男')
# use1.person_info()
us2 = Student('丽丽', 18, '女', '家里蹲')
us2.person_info()